package com.xxh.dataaccess.service.impl;

import com.xxh.dataaccess.dao.log.UserLogDao;
import com.xxh.dataaccess.entity.log.UserLog;
import com.xxh.dataaccess.service.UserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("UserLogService")
public class UserLogServiceImpl implements UserLogService {


    @Autowired
    UserLogDao userLogDao;

    @Override
    public void saveUserLog(UserLog log) {
        userLogDao.insert(log);
    }

    @Override
    public void savUserLogBatchs(List<UserLog> logs) {
        userLogDao.saveAll(logs);
    }
}
